package com.lyk.coursearrange.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("tb_post")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Post extends Model<Post> {

    private static final long serialVersionUID=1L;


    /**
     * 排课id
     */
    @TableId(value = "po_id", type = IdType.AUTO)
    private Long poId;
    /**
     * 排课编号
     */
    private String poName;
    /**
     * 角色备注
     */
    private String poRemarks;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
